package com.liu.openapiclientsdk;

import com.liu.openapiclientsdk.client.OpenApiClient;
import com.liu.openapiclientsdk.model.User;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan
@ConfigurationProperties("openapi.client")
@Data
public class OpenApiClientConfig {

    private String accessKey;

    private String secretKey;

    @Bean
    public OpenApiClient openApiClient(){
        return new OpenApiClient(accessKey, secretKey);
    }
}
